<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="dictSeriesList" checkbox="true" fitColumns="true" title="系别管理" actionUrl="dictSeriesController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="名称"  field="seriesName"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="简拼"  field="py"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="序号"  field="seriesOrder"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="是否删除"  field="deleted"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
    <t:dgFunOpt  funname="editItemDetail({'编辑'},{'dictSeriesController.do?goUpdate'},id,{'420'},{'180'})" title="编辑"  />
   <t:dgFunOpt  funname="showItemDetail({'查看'},{'dictSeriesController.do?goUpdate'},id,{'420'},{'180'})" title="查看"  />
   <t:dgDelOpt title="删除" url="dictSeriesController.do?doDel&id={id}" />
   <t:dgToolBar title="录入系别" icon="icon-add" url="dictSeriesController.do?goAdd" funname="add" height="180" width="420"></t:dgToolBar>
    <t:dgToolBar title="批量删除"  icon="icon-remove" url="dictSeriesController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
    <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/mengtian_tech/device_mgr/dict/dictSeriesList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#dictSeriesListtb").find("input[name='createDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'dictSeriesController.do?upload', "dictSeriesList");
}

//导出
function ExportXls() {
	JeecgExcelExport("dictSeriesController.do?exportXls","dictSeriesList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("dictSeriesController.do?exportXlsByT","dictSeriesList");
}
 </script>